import {ColumnsUtil} from "@/utils";




export const EXCHANGE_COLUMNS = [
    ColumnsUtil.normalColumn("兑换码", "redeemCodes", 160),
    ColumnsUtil.tagColumn("使用方式", "kind", 90,),
    ColumnsUtil.normalColumn("兑换比例/数量", "proportion", 90, 'center'),
    ColumnsUtil.tagColumn("状态", "state", 90, true, 'center'),
    ColumnsUtil.normalColumn("创建时间", "createTime", 175),
    ColumnsUtil.normalColumn("使用账号", "useMember.name", 90, 'center'),
    ColumnsUtil.normalColumn("使用时间", "useTime", 150),
    ColumnsUtil.actionColumn(170)
]


export const LEVEL_COLUMNS = [
    ColumnsUtil.imageColumn("等级图标", "icon" ,true,90,70,70),
    ColumnsUtil.normalColumn("等级序号", "code", 90, 'center'),
    ColumnsUtil.normalColumn("等级名称", "name", 130, 'left'),

    ColumnsUtil.normalColumn("规则描述", "description", 0, 'left'),
    ColumnsUtil.tagColumn("创建时间", "createTime", 175),
    ColumnsUtil.actionColumn(130)
]


export const INVITER_COLUMNS = [
    ColumnsUtil.normalColumn("手机号码", "phone", 125, 'center'),
    ColumnsUtil.normalColumn("人员姓名", "name", 0),
    ColumnsUtil.normalColumn("分销等级", "level.nickName", 100),
    ColumnsUtil.normalColumn("邀请会员", "rts1", 90, 'center'),
    ColumnsUtil.normalColumn("邀请代理", "rts2", 90, 'center'),
    ColumnsUtil.booleanColumn("分佣状态", "status", '正常', '禁用', 90, true, 'center'),
    ColumnsUtil.normalColumn("保证金", "depositFee", 90, 'center'),
    ColumnsUtil.normalColumn("累计佣金", "amountCont", 90, 'center'),
    ColumnsUtil.normalColumn("佣金余额", "amount", 90, 'center'),
    ColumnsUtil.normalColumn("注册时间", "createTime", 175),
    ColumnsUtil.actionColumn(150)
]


export const CASE_COLUMNS = [
    ColumnsUtil.normalColumn("台账号", "code", 180),
    ColumnsUtil.normalColumn("台账时间", "createTime", 180),
    ColumnsUtil.normalColumn("受益分销员", "agent.name", 150),
    ColumnsUtil.normalColumn("手机号", "agent.phone", 150),
    ColumnsUtil.tagColumn("台账类型", "kind", 150),
    ColumnsUtil.tagColumn("台账状态", "status", 150),
    ColumnsUtil.normalColumn("台账金额", "amount", 150),
    ColumnsUtil.normalColumn("台账备注", "remark", 0),
]


export const RECORD_COLUMNS = [
    ColumnsUtil.normalColumn("邀请记录ID", "id", 190),
    ColumnsUtil.normalColumn("分销员手机", "inviter.phone", 130),
    ColumnsUtil.normalColumn("分销员姓名", "inviter.name", 130),
    ColumnsUtil.normalColumn("分销员等级", "inviter.level.nickName", 130),
    ColumnsUtil.normalColumn("注册人手机号", "member.phoneNumber", 150),
    ColumnsUtil.normalColumn("注册人昵称", "member.nickName", 0),
    ColumnsUtil.normalColumn("关系绑定时间", "bindTime", 175),
]

export const QUESTIONNAIRE_COLUMNS = [
    ColumnsUtil.normalColumn("姓名", "name", 190),
    ColumnsUtil.normalColumn("年龄", "age", 130),
    ColumnsUtil.normalColumn("性别", "sex", 130),
    ColumnsUtil.normalColumn("手机号", "mobilePhone", 130),
    ColumnsUtil.normalColumn("提交时间", "createTime", 0,'left'),
    ColumnsUtil.actionColumn(80)
]

